app.service("orderService",function ($http) {
    //搜索
    this.search=function(pageNum,pageSize,searchEntity){
        return $http.post('../sellerOrderController/search.do?pageNum='+pageNum+"&pageSize="+pageSize, searchEntity);
    }
    //更新状态
    this.updateState=function(id,status){
        return $http.get('../sellerOrderController/updateState.do?id='+id+"&status="+status);
    }
    //退款
    this.sureRefund=function(id){
        return $http.get('../sellerOrderController/sureRefund.do?id='+id);
    }
})